import request from '@/utils/request'

// 查询匹配的房源详情
export function listTbData(query) {
    return request({
        url: '/quartz/tbData/listDetail',
        method: 'get',
        params: query
    })
}
// 查询业务需求列表
export function listBusiness(query) {
  return request({
    url: '/admin/business/list',
    method: 'get',
    params: query
  })
}

// 查询业务需求详细
export function getBusiness(id) {
  return request({
    url: '/admin/business/' + id,
    method: 'get'
  })
}

// 新增业务需求
export function addBusiness(data) {
  return request({
    url: '/admin/business',
    method: 'post',
    data: data
  })
}

// 修改业务需求
export function updateBusiness(data) {
  return request({
    url: '/admin/business',
    method: 'put',
    data: data
  })
}

// 删除业务需求
export function delBusiness(id) {
  return request({
    url: '/admin/business/' + id,
    method: 'delete'
  })
}
